import sequelize from '../config/sequelize';
import Sequelize from 'sequelize';
const PasswordsModel = sequelize.define(
  'Passwords',
  {
    //   id
    id: {
      allowNull: false,
      autoIncrement: true,
      primaryKey: true,
      type: Sequelize.INTEGER,
    },
    // 网站名
    name: {
      type: Sequelize.STRING(20),
      allowNull: false,
    },
    // 网站url
    httpUrl: {
      type: Sequelize.STRING(1024),
    },
    // 密码
    password: {
      type: Sequelize.STRING(30),
      allowNull: false,
    },
  },
  {
    tableName: 'Passwords',
  },
);
export default PasswordsModel;
